<template>
    <el-select v-model="formModel.labelName" multiple placeholder="请选择" collapse-tags clearable>
      <el-option v-for="item in options"
                 :key="item.name"
                 :label="item.code"
                 :value="item.name"></el-option>
    </el-select>
</template>

<script lang="ts">

import Vue from "vue";
import Component from 'vue-class-component';
import {Dependencies} from "~/core/decorator";
import {LabelingStrategyService} from "~/services/dataimp-service/labeling-strategy-service";
import {Prop} from "vue-property-decorator";

@Component({
    name: "get-label-name",
    components: {},
})
export default class GetLabelName extends Vue {

    @Dependencies(LabelingStrategyService)
    private labelingStrategyService: LabelingStrategyService;
    private options: any = [];
    @Prop({
        type: Object
    })
    private formModel: any;


    private created() {
        this.labelingStrategyService.getLabelNameList().subscribe((data) => (this.options = data))
    }
}
</script>

<style lang="less" scoped>

</style>
